/**

 @Name: layim
 @Description：Classic modular front-end UI framework

 */

/* 加载就绪标志 */
html #layuicss-skinlayimcss{display:none; position: absolute; width:1989px;}

/* 通用 */
.layim-border{border-width: 0; border-style: solid; border-color: rgba(199,199,199,.3);}

/* 滚动条 */
.layim-scrollbar{scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.16) rgba(0,0,0,0);}
.layim-scrollbar::-webkit-scrollbar{width: 8px; height: 8px;}
.layim-scrollbar::-webkit-scrollbar-button{display: none;} /* 按钮 */
.layim-scrollbar::-webkit-scrollbar-track{background: none;} /* 轨道 */
.layim-scrollbar::-webkit-scrollbar-thumb{border-radius: 6px; background-color: rgba(0,0,0,.1);} /* 滑块 */
.layim-scrollbar::-webkit-scrollbar-thumb:hover{background-color: rgba(0,0,0,.16);}
.layim-scrollbar::-webkit-scrollbar-thumb:active{background-color: rgba(0,0,0,.32);}

/* loading */
.layui-layim-loading{position: absolute; left: 0; top: 0; width: 100%; height: 100%;}
.layui-layim-loading > .layui-icon-loading-1{position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -12px; font-size: 24px;}

/* 主面板 */
.layui-layim-layer,
.layui-layim-layer *{box-sizing: border-box;}
body .layui-layim,
body .layui-layim-chat{border: 1px solid #EBEBEB\0; background-repeat: no-repeat; background-color: #fff; color: #333;}
body .layui-layim-chat{background-size: cover;}
body .layui-layim .layui-layer-title{height: 110px; border-bottom: none; background: rgba(245, 245, 245, .9);}
.layui-layim-main{position: relative; top: -98px; left:0;}
body .layui-layim .layui-layer-content,
body .layui-layim-chat .layui-layer-content{overflow: visible;}
.layui-layim cite,
.layui-layim em,
.layui-layim-chat cite,
.layui-layim-chat em{font-style: normal;}
.layui-layim-info{height: 50px; font-size: 0; padding: 0 15px;}
.layui-layim-info *{font-size: 14px;}
.layui-layim-info div,
.layui-layim-tab li,
.layim-tab-content li h5 *,
.layui-layim-tool li,
.layui-layim-skin li{display: inline-block; vertical-align: top; *zoom: 1; *display: inline;}
.layui-layim-info .layui-layim-user,
.layui-layim-remark,
.layui-layim-list li p,
.layim-tab-content li h5 span,
.layui-layim-list li span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.layui-layim-info .layui-layim-user{max-width: 150px; margin-right: 5px; font-size: 16px;}
.layui-layim-status{position: relative; top: 2px; line-height: 19px; cursor: pointer;}
.layim-status-online{color: #16b777; color: rgba(22,183,119, 0.9);}
.layim-status-hide{color: #DD691D;}
.layim-menu-box{display: none; position: absolute; z-index: 100; top: 24px; left: -31px; padding: 5px 0; width: 85px; border-width: 1px; border-radius: 2px; background-color: #fff; box-shadow: 1px 1px 20px rgba(0,0,0,.1);}
.layim-menu-box li{position: relative; line-height: 22px; padding-left: 30px; font-size: 12px;}
.layim-menu-box li cite{padding-right: 5px; font-size: 14px;}
.layim-menu-box li i{display: none; position: absolute; left: 8px; top: 0; font-weight: 700; color: #5FB878;}
.layim-menu-box .layim-this i{display: block;}
.layim-menu-box li:hover{background-color: #eee;}
.layui-layim-remark{position: relative; left: -6px; display: block; width: 100%; border: 1px solid transparent; margin-top: 8px; padding: 0 5px; height: 26px; line-height: 26px; background: none; border-radius: 2px;}
.layui-layim-remark:hover,
.layui-layim-remark:focus{border: 1px solid #d2d2d2; border-color: rgba(0,0,0,.15)}
.layui-layim-remark:focus{background-color: #fff;}

.layui-layim-tab{margin-top: 5px; padding: 9px 0; font-size: 0; border-bottom-width: 1px;}
.layui-layim-tab li{position: relative; width: 33.33%; height: 24px; line-height:24px; font-size: 22px; text-align: center; color: #666; color: rgba(0,0,0,.6); cursor: pointer;}
.layim-tab-two li{width: 50%;}
.layui-layim-tab li.layim-this:after{content: ''; position: absolute; left: 0; bottom: -9px; width: 100%; height: 3px; background-color: #3FDD86;}
.layui-layim-tab li.layim-hide{display: none;}
.layui-layim-tab li:hover{opacity: 0.8; filter: Alpha(opacity=80);}
.layim-tab-content{display: none; padding: 10px 0; height: 371px; overflow: hidden; background-color: rgba(245,245,245,.9);}
.layim-tab-content:hover{overflow-y: auto;}
.layim-tab-content li h5{position:relative; margin-right: 15px; padding-left: 30px; height: 28px; line-height: 28px; cursor:pointer; font-size:0; white-space: nowrap; overflow: hidden;}
.layim-tab-content li h5 *{font-size: 14px;}
.layim-tab-content li h5 span{max-width: 125px;}
.layim-tab-content li h5 i{position: absolute; left: 12px; top: 0; color: #C9BDBB;}
.layim-tab-content li h5 em{padding-left: 5px; color: #999;}
.layim-tab-content li h5[lay-type="true"] i{top: 1px; margin-left: -1px;}
.layim-tab-content li ul{display: none; margin-bottom: 10px;}
.layui-layim-list li{position:relative; height: 52px; padding: 5px 15px 5px 60px; font-size:0; cursor: pointer; transition: all 0.3s;}
.layui-layim-list li:hover{background-color: #F2F2F2; background-color: rgba(0,0,0,0.05);}
.layui-layim-list li.layim-null{height: 20px; line-height: 20px; padding: 0; font-size: 14px; color: #999; text-align: center; cursor: default;}
.layui-layim-list li.layim-null:hover{background: none;}
.layui-layim-list li *{display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
.layui-layim-list li span{margin-top: 4px; max-width: 155px;}
.layui-layim-list li img{position: absolute; left: 15px; top: 8px; width: 36px; height: 36px; border-radius: 100%;}
.layui-layim-list li p{display: block; padding-right: 30px; line-height: 18px; font-size: 12px; color: #999;}
.layui-layim-list li .layim-msg-status{display: none; position: absolute; right: 10px; bottom: 7px; padding: 0 5px; height: 16px; line-height: 16px; border-radius: 16px; text-align: center; font-size: 10px; background-color: #F74C31; color: #fff;}
.layim-list-gray{-webkit-filter: grayscale(100%);  -ms-filter: grayscale(100%); filter: grayscale(100%); filter: gray;}

.layui-layim-tool{padding: 0 10px; font-size: 0; border-top-width: 1px; border-radius:0 0 2px 2px; background-color: rgba(245,245,245,.9);}
.layui-layim-tool li{position: relative; width: 58px; height: 37px; line-height: 40px; text-align: center; font-size: 21px; cursor: pointer;}
.layui-layim-tool li:active{background-color: rgba(235,235,235,.9);}
.layui-layim-tool .layim-tool-msgbox{line-height: 37px;}
.layui-layim-tool .layim-tool-find{line-height: 38px;}
.layui-layim-tool .layim-tool-skin{font-size: 24px;}
.layim-tool-msgbox span{display: none; position: absolute; left: 12px; top: -12px; height: 20px; line-height: 20px; padding: 0 10px; border-radius: 2px; background-color: #33DF83; color: #fff; font-size: 12px; -webkit-animation-duration: 1s; animation-duration: 1s;}
.layim-tool-msgbox .layer-anim-05{display: block;}

.layui-layim-search{display: none; position: absolute; bottom: 5px; left: 5px; right: 5px; height: 28px; line-height: 28px;}
.layui-layim-search input{width: 100%; padding: 0 30px 0 10px; height: 28px; line-height: 28px; border: none; border-radius: 3px; background-color: #ddd;}
.layui-layim-search label{position: absolute; right: 6px; top: 4px; font-size: 20px; cursor: pointer; color: #333; font-weight: 400;}

/**
 * 设置面板
 */
#layui-layim-set{padding: 16px;}
#layui-layim-set .layui-form-item{margin-bottom: 5px;}
#layui-layim-set .layui-form-label{width: 115px; text-align: left;}

/* 背景 */
.layui-layim-skin{margin: 10px 0 0 10px; font-size: 0;}
.layui-layim-skin li{margin: 0 10px 10px 0; line-height: 60px; text-align: center; background-color: #f6f6f6;}
.layui-layim-skin li,
.layui-layim-skin li img{width: 97px; height: 60px; cursor: pointer;}
.layui-layim-skin li img:hover{opacity: 0.8; filter: Alpha(opacity=80)}
.layui-layim-skin li cite{font-size: 14px; font-style: normal;}

/**
 * 聊天面板
 */
body .layui-layim-chat{background-color: #f5f5f5;}
body .layui-layim-chat-list{width: 760px;}
body .layui-layim-chat .layui-layer-title{height: 52px; border-bottom-color: #EBEBEB; background-color: rgba(245,245,245,.9); border-radius: 0; box-sizing: border-box;}
body .layui-layim-chat .layui-layer-content{background: none;}
body .layui-layim-chat-more .layui-layer-title{margin-left: 200px;}

.layim-chat-list li *
,.layui-layim-min .layui-layer-content *{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
.layim-chat-list{display: none; position: absolute; z-index: 1000; top: -52px; width: 200px; height: 100%; background-color: #EBEBEB; background-color: rgba(232,232,232,.9); overflow: hidden; font-size: 0;}
.layim-chat-list:hover{overflow-y: auto;}
.layim-chat-list li,
.layui-layim-min .layui-layer-content{position: relative; margin: 5px; padding: 5px 30px 5px 5px; line-height: 38px; cursor: pointer; border-radius: 3px;}
.layim-chat-list li img,
.layui-layim-min .layui-layer-content img{width: 38px; height: 38px; border-radius: 100%; cursor: default;}
.layim-chat-list li{transition: all 0.3s; white-space: nowrap;}
.layim-chat-list li span,
.layui-layim-min .layui-layer-content span{max-width: 115px; padding-left: 10px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.layim-chat-list li span cite{color: #999; padding-left: 10px;}
.layim-chat-list li:hover{background-color: #F3F3F3;}
.layim-chat-list li.layim-this{background-color: #F8F9FA;}
.layim-chat-list li .layui-icon{display: none; position: absolute; right: 5px; top: 7px; color: #555; font-size: 22px;}
.layim-chat-list li .layui-icon:hover{color: #c00;}
.layim-chat-list li:hover .layui-icon{display: inline-block;}

.layim-chat-system{margin: 10px 0; text-align: center;}
.layim-chat-system span{display: inline-block; line-height: 30px; padding: 0 15px; border-radius: 3px; background-color: #EBEBEB; cursor: default; font-size: 13px;}

.layim-chat{display: none; position: relative; background-color: #fff; background-color: rgba(245,245,245,.9);}
.layim-chat-title{position: absolute; top: -52px; height: 52px;}
.layim-chat-other{position: relative; top: 11px; left: 17px; padding-left: 45px; cursor: default;}
.layim-chat-other img{position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 100%;}
.layim-chat-username{position: relative; top: 5px; font-size: 16px;}
.layim-chat-status{position: relative; top: 5px; padding-left: 5px; font-size: 13px; color: #B7B7B7;}
.layim-chat-group .layim-chat-other .layim-chat-username{cursor: pointer;}
.layim-chat-group .layim-chat-other .layim-chat-username em{padding: 0 10px; color: #999;}

.layim-chat-main{height: 315px; padding: 11px 11px 5px 11px; overflow-x: hidden; overflow-y: auto;}
.layim-chat-main > ul > li{position: relative; font-size: 0; margin-bottom: 10px; padding-left: 52px; min-height: 68px;}
.layim-chat-userinfo,
.layim-chat-text{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
.layim-chat-userinfo{position: absolute; left: 3px;}
.layim-chat-userinfo img{width: 38px; height: 38px; border-radius: 100%;}
.layim-chat-userinfo cite{position: absolute; left: 52px; top: -2px; width: 500px; line-height: 24px; font-size: 12px; white-space: nowrap; color: #999; text-align: left; font-style: normal;}
.layim-chat-userinfo cite i{padding-left: 15px; font-style: normal;}

.layim-chat-text{position: relative; line-height: 24px; margin-top: 25px; padding: 6px 11px; background-color: rgba(255,255,255,.9); border-radius: 3px; color: #333; word-break: break-all;}
.layim-chat-text:after{content: ''; position: absolute; left: -9px; top: 11px; width: 0; height: 0; border-style: dashed; border-color:transparent; overflow:hidden; border-width: 10px; border-top-style: solid; border-top-color: rgba(255,255,255,.9);}
.layim-chat-text{max-width: 462px\0;}
.layim-chat-text a{color: #33DF83;}
.layim-chat-text img{ max-width: 100%; vertical-align: middle;}
.layui-layim-file,
.layim-chat-text .layui-layim-file{display: block; text-align: center; }
.layim-chat-text .layui-layim-file{color: unset !important;}
.layim-chat-text .layui-layim-file:hover{text-decoration: none !important;}
.layim-chat-text code:not(.layui-code-view, .layui-code-wrap){padding: 2px 5px; border-radius: 3px; background-color: rgba(245, 245, 245, .9); font-family: "Courier New",Consolas,"Lucida Console";}
.layim-chat-text :where(h1,h2,h3){margin: 16px 0;}
.layim-chat-text :where(h4,h5,h6){margin: 11px 0;}
.layim-chat-text.layui-text pre > code:not(.layui-code){margin: 5px 0;}
.layim-chat-text.layui-text .layui-code-line-content{padding-right: 65px;}
.layim-chat-text.layui-text p{margin: 11px 0;}
.layim-chat-text.layui-text p:first-child{margin-top: 0;}
.layim-chat-text.layui-text p:last-child{margin-bottom: 0;}
.layim-chat-text.layui-text ul li{margin-top: 0;}
.layim-chat-role-user .layim-chat-text code:not(.layui-code-view, .layui-code-wrap){background: none;}
.layim-chat-role-user .layim-chat-text blockquote:not(.layui-elem-quote){border-left-color: #16b777;}

.layui-layim-file:hover{opacity: 0.9}
.layui-layim-file i{font-size: 52px; line-height: 52px;}
.layui-layim-file cite{display: block; line-height: 20px; font-size: 14px;}
.layui-layim-audio{text-align: center; cursor: pointer;}
.layui-layim-audio .layui-icon{position: relative; top: 5px; font-size: 24px;}
.layui-layim-audio p{margin-top: 3px;}
.layui-layim-video{width: 120px; height: 80px; line-height: 80px; background-color: #333; text-align: center; border-radius: 3px;}
.layui-layim-video .layui-icon{font-size: 36px; cursor: pointer; color: #fff;}
.layim-chat-main > ul > .layim-chat-system{min-height: 0; padding: 0;}
.layim-chat-main > ul > li+.layim-chat-system{margin-top: 20px;}

.layim-chat-main > ul > .layim-chat-role-user{text-align: right; padding-left: 0; padding-right: 52px;}
.layim-chat-role-user .layim-chat-userinfo{left: auto; right: 3px;}
.layim-chat-role-user .layim-chat-userinfo cite{left: auto; right: 52px; text-align: right;}
.layim-chat-role-user .layim-chat-userinfo cite i{padding-left: 0; padding-right: 15px;}
.layim-chat-role-user .layim-chat-text{margin-left: 0; text-align: left; background-color: #52EAAA;}
.layim-chat-role-user .layim-chat-text:after{left: auto; right: -9px; border-top-color: #52EAAA;}

.layim-loading{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: transparent; cursor: not-allowed;}
.layim-loading > .layui-icon{position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -16px; font-size: 32px; color: rgba(0,0,0,.7);}

.layim-chat-footer{border-top-width: 1px;}
.layim-chat-tool{position: relative; padding: 0 8px; height: 38px; line-height: 38px; font-size: 0;}
.layim-chat-tool span{position: relative; margin: 0 10px; display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 21px; cursor: pointer;}
.layim-chat-tool .layim-tool-log{position: absolute; right: 5px; font-size: 16px; }
.layim-tool-log i{position: relative; top: 2px; margin-right: 5px; font-size: 16px; color: #999}
.layim-chat-tool span[layim-event="file"] input{position: absolute; font-size: 0; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.01; filter: Alpha(opacity=1); cursor: pointer;}

/* 表情 */
body .layui-layim-face{margin: 10px 0 0 -18px; border: none; background: none;}
body .layui-layim-face  .layui-layer-content{padding:0; background: none; color:#666; box-shadow:none}
.layui-layim-face .layui-layer-TipsG{display:none;}
.layui-layim-face ul{position:relative; width: 372px; padding: 10px; border:1px solid #EBEBEB; background-color:#fff; box-shadow: 0 0 20px rgba(0,0,0,.2);}
.layui-layim-face ul li{cursor: pointer; float: left; border: 1px solid #e8e8e8; height: 22px; width: 88px; overflow: hidden; margin: -1px 0 0 -1px; padding: 4px 2px; text-align: center;}
.layui-layim-face ul li:hover{position: relative; z-index: 2; border: 1px solid #eb7350; background: #fff9ec; color: initial;}

/* 输入框 */
.layim-chat-textarea{margin-left: 10px;}
.layim-chat-textarea textarea{display: block; width: 100%; padding: 5px 0 0 0; height: 66px; line-height: 20px; border: none; overflow: auto; resize: none; background: none;}
.layim-chat-textarea textarea:focus{outline: 0;}

.layim-chat-bottom{position: relative; height: 45px;}
.layim-chat-send{position: absolute; right: 15px; top: 3px; height: 32px; line-height: 32px; font-size: 0; cursor: pointer;}
.layim-chat-send span{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
.layim-chat-send span{line-height: 32px; margin-left: 5px; padding: 0 20px; background: rgba(225, 225, 225, .7); border-radius: 3px;}
.layim-chat-send span.layim-send-btn{color: #16b777;}
.layim-chat-send span:hover{background-color: #DCDCDC;}
.layim-chat-send span:active{background-color: #D1D1D1}
.layim-chat-send .layim-send-btn{border-radius: 3px 0 0 3px;}
.layim-chat-send .layim-send-set{position: relative; width: 30px; height: 32px; margin-left: 0; padding: 0; border-left-width: 1px; border-radius: 0 3px 3px 0;}
.layim-send-set .layui-icon{position: absolute; top: 1px; left: 9px; font-size: 12px;}
.layim-chat-send .layim-menu-box{left: auto; right: 0; top: 33px; width: 180px; padding: 10px 0;}
.layim-chat-send .layim-menu-box li{padding-right: 15px; line-height: 28px;}

/* 最小化 */
body .layui-layim-min{border: 1px solid #EBEBEB;}
.layui-layim-min .layui-layer-content{margin: 0 5px; padding: 7px 10px; white-space: nowrap;}
.layui-layim-close .layui-layer-content span {width: auto; max-width: 120px;}


/* 查看群员 */
body .layui-layim-members{margin: 5px 0 0 -62px; border: none; background: none;}
body .layui-layim-members  .layui-layer-content{padding:0; background: none; color:#666; box-shadow:none}
.layui-layim-members .layui-layer-TipsG{display:none;}
.layui-layim-members ul{position:relative; width: 600px; height: 210px; padding: 10px 10px 0 10px; border-bottom-width: 1px; background-color:#fff; background-color: rgba(255,255,255,.9); box-shadow: none; overflow: hidden;}
.layui-layim-members ul:hover{overflow: auto;}
.layui-layim-members ul{font-size: 0;}
.layui-layim-members li,
.layim-add-img,
.layim-add-remark{display: inline-block; *display:inline; *zoom:1; vertical-align: top; font-size: 14px;}
.layui-layim-members li{width: 112px; margin: 10px 0; text-align: center}
.layui-layim-members li a{position: relative; display: inline-block;  max-width: 100%;}
.layui-layim-members li a:after{content: ''; position: absolute; width: 46px; height: 46px; left: 50%; margin-left: -23px; top: 0;  border: 1px solid #eee; border-color: rgba(0,0,0,.1);  border-radius: 100%;}
.layui-layim-members li img{width: 48px; height: 48px; border-radius: 100%;}
.layui-layim-members li:hover{opacity: 0.9;}
.layui-layim-members li a cite{display: block; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}

/* 右键面板 */
body .layui-layim-contextmenu{margin: 70px 0 0 30px; width: 200px; padding: 5px 0; border: 1px solid #ccc; background: #fff; border-radius: 0; box-shadow: 0 0 5px rgba(0,0,0,.2);}
body .layui-layim-contextmenu  .layui-layer-content{padding:0; background-color:#fff; color: #333; font-size: 14px; box-shadow: none}
.layui-layim-contextmenu .layui-layer-TipsG{display:none;}
.layui-layim-contextmenu li{padding: 0 15px 0 35px; cursor: pointer; line-height: 30px;}
.layui-layim-contextmenu li:hover{background-color: #F2F2F2;}

/* 添加面板 */
.layim-add-box{margin: 15px; font-size: 0;}
.layim-add-img{width: 100px; margin-right: 20px; text-align: center;}
.layim-add-img img{width: 100px; height: 100px; margin-bottom: 10px;}
.layim-add-remark{width: 280px;}
.layim-add-remark p{margin-bottom: 10px;}
.layim-add-remark .layui-select{width: 100%; margin-bottom: 10px;}
.layim-add-remark .layui-textarea{height: 80px; min-height: 80px; resize: none;}

/* 排除与bootstrap的冲突 */
.layui-layim-tab,
.layim-tab-content,
.layui-layim-face ul{margin-bottom: 0;}
.layim-tab-content li h5{margin-top: 0; margin-bottom: 0;}
,.layui-layim-face img{vertical-align: bottom;}
.layim-chat-other span{color: #444;}
.layim-chat-other span cite{padding: 0 15px; color: #999;}
.layim-chat-other:hover{text-decoration: none;}





